package com.guofen.dao;

import com.guofen.pojo.SjqSolidliquidProduceEquipmentRunning;
import com.guofen.pojo.SjqSolidliquidProduceFault;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SjqSolidliquidProduceFaultMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(SjqSolidliquidProduceFault record);

    int insertSelective(SjqSolidliquidProduceFault record);

    SjqSolidliquidProduceFault selectByPrimaryKey(Integer id);

    SjqSolidliquidProduceFault getLast();

    int updateByPrimaryKeySelective(SjqSolidliquidProduceFault record);

    int updateByPrimaryKey(SjqSolidliquidProduceFault record);

    SjqSolidliquidProduceFault getLastByEquipmentName(String equipment_name);

    List<SjqSolidliquidProduceFault> selectAll();

    List<SjqSolidliquidProduceFault> selectByDate(@Param("startDate") String startDate,
                                                             @Param("endDate") String endDate);
}